package cn.udrm.water.base.v1.commons.enums;

import lombok.Getter;

/**
 * 渠道类型枚举
 * @author liukang
 * @date 2018年12月31日
 */
@Getter
public enum CanalSystemTypeEnum {

	/*
	 * 总干渠/沟
	 */
	TOTAL_TRUNK_CANAL((byte)0x01, CanalSystemFunctionEnum.CANAL, "总干渠"),
	TOTAL_TRUNK_DITCH((byte)0x11, CanalSystemFunctionEnum.DITCH, "总干沟"),
	/*
	 * 干渠/沟
	 */
	TRUNK_CANAL((byte)0x02, CanalSystemFunctionEnum.CANAL, "干渠"),
	TRUNK_DITCH((byte)0x12, CanalSystemFunctionEnum.DITCH, "干沟"),
	/*
	 * 支干渠/沟
	 */
	DRY_BRANCH_CANAL((byte)0x03, CanalSystemFunctionEnum.CANAL, "支干渠"),
	DRY_BRANCH_DITCH((byte)0x13, CanalSystemFunctionEnum.DITCH, "支干沟"),
	/*
	 * 支渠/沟
	 */
	BRANCH_CANAL((byte)0x04, CanalSystemFunctionEnum.CANAL, "支渠"),
	BRANCH_DITCH((byte)0x14, CanalSystemFunctionEnum.DITCH, "支沟"),
	/*
	 * 斗渠/沟
	 */
	LATERAL_CANAL((byte)0x05, CanalSystemFunctionEnum.CANAL, "斗渠"),
	LATERAL_DITCH((byte)0x15, CanalSystemFunctionEnum.DITCH, "斗沟"),
	/*
	 * 农渠/沟
	 */
	FIELD_CANAL((byte)0x06, CanalSystemFunctionEnum.CANAL, "农渠"),
	FIELD_DITCH((byte)0x16, CanalSystemFunctionEnum.DITCH, "农沟"),
	/*
	 * 毛渠/沟
	 */
	SUBLATERAL_CANAL((byte)0x07, CanalSystemFunctionEnum.CANAL, "毛渠"),
	SUBLATERAL_DITCH((byte)0x17, CanalSystemFunctionEnum.DITCH, "毛沟");
	
	private CanalSystemFunctionEnum functionEnum;
	private byte code;
	private String desc;
	
	private CanalSystemTypeEnum(byte code, CanalSystemFunctionEnum functionEnum, String desc) {
		this.code = code;
		this.functionEnum = functionEnum;
		this.desc = desc;
	}
}
